
<%@ page language="java" import="java.util.*,entity.*,Dao.FoodsDao,factory.*,Dao.Impl.FoodsDaoImpl" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<HTML>
<HEAD>
<TITLE>管理员
</TITLE>
<META http-equiv=Content-Type content="text/html;charset=utf-8" >
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=-1000>

<LINK href="/OrderMeal/css/admin.css" type="text/css" rel="stylesheet">
<link href="/OrderMeal/css/layout.css" type="text/css" rel="stylesheet">


  </head>
  
  <body>
  <%  	
  	String no = request.getParameter("food_no");
  	int food_no = 0;
  	food_no = Integer.parseInt(no);
  	FoodsDao fd = DaoFactory.getFoodsDao();
    Foods f = new Foods();
    f = fd.getFood(food_no);  	
   %>
<div id="container">
<div id="header"><jsp:include page="header.jsp"></jsp:include></div>
<div id="mainContent">
<div id="sidebar"><jsp:include page="managersf.jsp"></jsp:include></div>
<div id="content">

  
   <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TR height=28>
    <TD background=/OrderMeal/Images/title_bg1.jpg>当前位置: 菜品信息修改</TD></TR>
  <TR>
    <TD bgColor=#b1ceef height=1></TD></TR>
  <TR height=20>
    <TD background=/OrderMeal/Images/shadow_bg.jpg></TD></TR></TABLE>
   <form action="servlet/FoodsUpdate.do"  method="post">
    <center>
   <table >  
   
    <tr>
   <th colspan="2">修改菜品的详细信息</th>
   </tr>
   <tr>
   <td>菜品编号：</td>
   <td><input type = "text" name = "food_no" id = "food_no" value ="<%= f.getFood_no()%>" /></td>
   </tr>
   <tr>
   <td>菜品名称：</td>
   <td><input type="text" name="food_name" id = "food_name" value="<%= f.getFood_name() %>"/></td>
   </tr>
   <tr>
   <td>菜品类型：</td>
   <td><input type="text" name="food_type" id = "food_type" value="<%= f.getFood_type()%>"/></td>
   </tr>
    <tr>
   <td>菜品风味：</td>
   <td><input type="text" name="food_class" id = "food_class" value="<%= f.getFood_class()%>"/></td>
   </tr>
   <tr>
   <td>菜品价格：</td>
   <td><input type="text" name="food_price" value="<%= f.getFood_price() %>"/></td>
   </tr>
  
   <tr>
    <td>餐品图片：</td>
    <td><input type="file" name="food_picAdd" value=""/></td>
   </tr>
    <tr>
   <td>餐品介绍：</td>
   <td><input type="text" name="food_detail" value="<%= f.getFood_detail() %>"/></td>
   </tr>
    <tr>
   <td>备注：</td>
   <td><input type="text" name="remark" value="<%= f.getRemark()%>"/></td>
   </tr>
  </table>
  <%fd.deleteFood(f); %>
   <input type="submit" name = "submit" id = "submit" value="修改"/>
  
   
   
   </center>
   </form>
   
  </div>
</div>

<div id="footer" align="center">版权所有    中北大学10060641  郭倩</div>

</div>
  </body>
  
</html>
